package org.pizza.nacos.loadBalancer;

import com.alibaba.nacos.api.naming.listener.NamingEvent;
import org.springframework.context.ApplicationEvent;

/**
 * @author 高巍
 * @since 2020/11/28 4:46 下午
 */
public class ServiceInstancesChangedEvent extends ApplicationEvent {
    private NamingEvent namingEvent;
    public ServiceInstancesChangedEvent(Object source,NamingEvent namingEvent) {
        super(source);
        this.namingEvent=namingEvent;
    }

    public NamingEvent getNamingEvent() {
        return namingEvent;
    }

    public void setNamingEvent(NamingEvent namingEvent) {
        this.namingEvent = namingEvent;
    }
}
